package com.qf.tenant.controller;

import com.qf.tenant.service.SMSCodeService;
import com.qf.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@CrossOrigin
@RequestMapping("/smsCode")
public class SMSCodeController {

    @Autowired
    private SMSCodeService smsCodeService;


    @GetMapping("/send/{phone}")
    public R SmsVerification(@PathVariable("phone") String phone) {
        return smsCodeService.SmsVerification(phone);
    }

}